/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helper.tx;



/**
 *
 * @author AdminNUS
 */
public class Helper_Timeslot implements Comparable{

    private Long id;
    private Integer tsTime; //values from 0000 to 2359
    private Integer quotaMon;
    private Integer quotaTue;
    private Integer quotaWed;
    private Integer quotaThu;
    private Integer quotaFri;
    private Integer quotaSat;
    private Integer quotaSun;

    public Helper_Timeslot() {
    }

    public Helper_Timeslot(Long id, Integer tsTime) //values from 0000 to 2359
    {
        this.id = id;
        this.tsTime = tsTime;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the tsTime
     */
    public Integer getTsTime() {
        return tsTime;
    }

    /**
     * @param tsTime the tsTime to set
     */
    public void setTsTime(Integer tsTime) {
        this.tsTime = tsTime;
    }

    /**
     * @return the quotaMon
     */
    public Integer getQuotaMon() {
        return quotaMon;
    }

    /**
     * @param quotaMon the quotaMon to set
     */
    public void setQuotaMon(Integer quotaMon) {
        this.quotaMon = quotaMon;
    }

    /**
     * @return the quotaTue
     */
    public Integer getQuotaTue() {
        return quotaTue;
    }

    /**
     * @param quotaTue the quotaTue to set
     */
    public void setQuotaTue(Integer quotaTue) {
        this.quotaTue = quotaTue;
    }

    /**
     * @return the quotaWed
     */
    public Integer getQuotaWed() {
        return quotaWed;
    }

    /**
     * @param quotaWed the quotaWed to set
     */
    public void setQuotaWed(Integer quotaWed) {
        this.quotaWed = quotaWed;
    }

    /**
     * @return the quotaThu
     */
    public Integer getQuotaThu() {
        return quotaThu;
    }

    /**
     * @param quotaThu the quotaThu to set
     */
    public void setQuotaThu(Integer quotaThu) {
        this.quotaThu = quotaThu;
    }

    /**
     * @return the quotaFri
     */
    public Integer getQuotaFri() {
        return quotaFri;
    }

    /**
     * @param quotaFri the quotaFri to set
     */
    public void setQuotaFri(Integer quotaFri) {
        this.quotaFri = quotaFri;
    }

    /**
     * @return the quotaSat
     */
    public Integer getQuotaSat() {
        return quotaSat;
    }

    /**
     * @param quotaSat the quotaSat to set
     */
    public void setQuotaSat(Integer quotaSat) {
        this.quotaSat = quotaSat;
    }

    /**
     * @return the quotaSun
     */
    public Integer getQuotaSun() {
        return quotaSun;
    }

    /**
     * @param quotaSun the quotaSun to set
     */
    public void setQuotaSun(Integer quotaSun) {
        this.quotaSun = quotaSun;
    }

    public int compareTo(Object o) {
        if (!(o instanceof Helper_Timeslot)) {
            throw new UnsupportedOperationException("Not supported yet.");
        } else if (this.getTsTime() > ((Helper_Timeslot) o).getTsTime()) {
            return 1;
        } else if (this.getTsTime() < ((Helper_Timeslot) o).getTsTime()) {
            return -1;
        } else {
            return 0;
        }
    }
}
